package utils

import "github.com/sirupsen/logrus"

//日志全局配置

var (
	Log *logrus.Entry
)

func LogInit() {
	log := logrus.New()
	log.SetFormatter(&logrus.TextFormatter{
		TimestampFormat: "2006-01-02 15:04:05", //时间格式
		FullTimestamp:   true,
	})
	logger := log.WithFields(logrus.Fields{"app": "cert"})
	Log = logger
}
